{literal}
<script type="text/javascript">
	$(document).ready(function() {
		$('#encounterSelector').change(function() {
			loadInputForm($(this).val());
		});
	});	
</script>	
{/literal}
<select id='encounterSelector'>
	<optgroup label="{translate}Current encounter{/translate}">
		{foreach from=$currentTicketTree key=ticketId item=ticketName}
			<option label="{$ticketName}" value="{$ticketId}">{$ticketName}</option>								
		{/foreach}
	</optgroup>
	
	<optgroup label="{translate}Last examinations{/translate}">
		<option>---</option>
	</optgroup>
</select>
